<template>
  <div class="video-box">
    <cardPanel title="实时监控">
      <div class="video-content">
        <el-carousel :interval="6000" style="height: 100%">
          <el-carousel-item v-for="(item, index) in videoList" :key="index">
            <div class="video-item">
              <video controls autoplay muted width="100%" height="100%" :src="item"></video>
            </div>
          </el-carousel-item>
        </el-carousel>
      </div>
    </cardPanel>
  </div>
</template>

<script setup lang="ts">
// 实时监控
import cardPanel from "@/components/cardPanel/index.vue";
const videoList = [
  "./data/jk.mp4",
  "./data/mapscan.mp4",
];
</script>

<style lang="scss">
.video-content {
  .el-carousel__container {
    height: 100%;
  }
}
</style>

<style lang="scss" scoped>
.video-box {
  width: 360px;
  height: 296px;
  margin-bottom: 10px;
}
.video-content {
  height: 100%;
}
.video-item{
  width: 100%;
  height: 100%;
}
</style>
